import { RouteRecordRaw, createRouter, createWebHashHistory } from "vue-router";

const routes:readonly RouteRecordRaw[] = [
  {
    path: '/',
    redirect:'/home',
  },
  {
    path: '/home',
    name: 'home',
    component: ()=>import('@/page/home.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: ()=>import('@/page/login.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: ()=>import('@/page/register.vue')
  }
]

const router = createRouter({
  routes,
  history: createWebHashHistory()
})


export default router